/*
 * Copyright (c) Jack魏 2023 - 2024, All Rights Reserved.
 */

package cn.jackwei.yiyi.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户注册对象
 *
 * @author Jack魏
 * @since 2023/11/11 19:13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "系统用户注册类")
public class SysUserUpdateVO {
    /**
     * 用户id，为空就是当前用户
     */
    @Schema(description = "用户id")
    private Long id;

    /**
     * 账号
     */
    @Schema(description = "账号")
    private String account;

    /**
     * 用户名称（昵称）
     */
    @NotEmpty(message = "昵称不可为空")
    @Schema(description = "用户名称（昵称）")
    private String userName;

    /**
     * 手机号
     */
    @NotNull
    @Schema(description = "手机号")
    @NotEmpty(message = "手机号不可为空")
    private String phone;

    /**
     * 验证码 email
     */
    @Schema(description = "email")
    private String email;

    /**
     * 性别
     */
    @Schema(description = "性别")
    private Integer sex;

    /**
     * 头像
     */
    @Schema(description = "头像")
    private String headImage;

    /**
     * files
     */
    @Schema(description = "files")
    private String files;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String notes;
}
